
if __name__ == '__main__':
    #1创建对象 指定位置
    client = Fdfs_client('client.conf')
# 2.调用方法，完成上传
    result = client.upload_by_filename('/home/python/Desktop/pic/news/1.jpg')
  # 使用结果
    print(result)
    '''
        {'Storage IP': '192.168.247.128', 'Status': 'Upload successed.', 'Group name': 'group1', 'Local file name': '/home/python/Desktop/pic/news/1.jpg', 'Uploaded size': '95.00KB', 'Remote file_id': 'group1/M00/00/02/wKj3gFwEfYWABjKMAAF8tkqbN5Q369.jpg'}
        wKj3gFwEfYWABjKMAAF8tkqbN5Q369.jpg
    '''